//
//  YQWalletDetailHeadView.m
//  NewRetail
//
//  Created by yuqin on 2019/6/25.
//  Copyright © 2019 yuqin. All rights reserved.
//

#import "YQWalletDetailHeadView.h"

@implementation YQWalletDetailHeadView

- (void)setupContentView {
    self.backgroundColor = WhiteColor;
    [self addSubview:self.icon];
    [self.icon mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(FIT(20));
        make.centerX.mas_equalTo(self.mas_centerX);
        make.size.mas_equalTo(CGSizeMake(FIT(40), FIT(40)));
    }];
}

- (UIImageView *)icon {
    if (!_icon) {
        _icon = [YQViewFactory imageViewWithImage:YQ_IMAGE(@"")];
        _icon.layer.cornerRadius = FIT(40)/2.0;
        _icon.layer.masksToBounds = YES;
        _icon.backgroundColor = MainRedTextColor;
    }
    return _icon;
}

@end
